package com.hzwq.demo.Email.service;


import com.hzwq.demo.Email.bo.SdteInBox;
import com.hzwq.demo.Email.bo.SdteOutBox;
import com.hzwq.demo.Email.repository.SdteOutBoxRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.beans.Transient;
import java.util.Date;

@Service
public class SdteOutBoxServiceImpl implements SdteOutBoxService {

    @Autowired
    private SdteOutBoxRepository sdteOutBoxRepository;


    /**
     * 写信时新增到发件箱
     * @param sod
     * @return
     */
    @Transactional()
    public void saveOutBox(SdteOutBox sod){
        sdteOutBoxRepository.save(sod);
    }
}
